<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="channelIncomeSettingCss" jsFile="channelIncomeSettingJs" current="渠道返利规则">
	<!-- BEGIN CONTENT BODY -->
    <div class="page-content">
    	<!-- BEGIN PAGE HEAD-->
         <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
                <h1>新增渠道返利方式
                    <small>新增渠道返利方式页面</small>
                </h1>
            </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD-->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
        	<li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <a href="${context}/mRebateRules/ruleIndex">渠道返利列表</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">新增渠道返利方式</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption">
                        基本信息</div>
                </div>
                <div class="portlet-body form edit-form">
                    <form action="#" class="horizontal-form createform" id="addChannelSetting" >
                            <input type="hidden" id="id"  name="id" value="${rebateRulesVO.id}" >  
                            <div class="form-body">
	                            <div class="alert alert-danger display-hide">
	                                <button class="close" data-close="alert"></button> 表单含有错误. 请检查. 
	                            </div>
	                            <div class="alert alert-success display-hide">
	                                <button class="close" data-close="alert"></button> 表单验证通过! 
	                            </div>
	                            <h4>工资发放总额</h4>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">区间开始值</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="★工资发放总额区间开始值" name="total_salary_begin" value="${rebateRulesVO.total_salary_begin}" />
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">区间结束值</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="★工资发放总额区间结束值" name="total_salary_end" value="${rebateRulesVO.total_salary_end}" />
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">返利系数</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="★返利系数 %" name="rebate_ratio" value="${rebateRulesVO.rebate_ratio}" />
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">备注</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="备注" name="remark" value="${rebateRulesVO.remark}"/>
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                           	</div>
                            <div class="form-actions top">
                                <div class="row">
                                    <div class="col-md-offset-5 col-md-7">
                                       <#if view !='toView'>
                                         <button type="submit" class="btn green" id="channelSettingSave">保存</button>
                                        </#if>
                                        <a href="${context}/mRebateRules/ruleIndex" class="btn default">返回</a>
                                    </div>
                                </div>
                            </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- END CONTENT BODY -->

</@page.mainTemplate>